package com.jackiepenghe.filetest

import android.app.Application
import com.sscl.baselibrary.files.FileUtil
import com.sscl.baselibrary.utils.CrashHandler
import com.sscl.baselibrary.utils.LogCatHelper

class MyApp : Application() {

    companion object {
        lateinit var instance: MyApp
    }

    override fun onCreate() {
        super.onCreate()
        instance = this
        FileUtil.init(this)
    }

    fun initCrashAndLogCat(){
        CrashHandler.getInstance().init(this,true)
        LogCatHelper.getInstance().init()
    }
}